package com.javaGather.day5;

public class Test {
    public static void main(String[] args) {

        Student<String> stringStudent = new Student<>();
        stringStudent.setT("123456");;
        System.out.println(stringStudent.getT());

        Student<Integer> integerStudent = new Student<>();
        integerStudent.setT(123);
        System.out.println(integerStudent.getT());

        Student<Double> doubleStudent = new Student<>();
        doubleStudent.setT(123.11);
        System.out.println(doubleStudent.getT());

        //不指定，就为Object
        Student<Object> objectStudent = new Student<>();
        objectStudent.setT(123.12);
        System.out.println(objectStudent.getT());
    }
}
